package com.example.tianling.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import net.minidev.json.JSONObject;

import java.util.Date;

@Data
@TableName(value = "article")
public class ArticleEntity {
    @TableId(value = "article_id", type = IdType.AUTO)
    private Integer articleId;

    private String userId;

    private String title;

    private String type;

    private String content;

    private String articleImg;

    private String createTime;

    private String viewNum;

    private String likeNum;

    private String saveNum;

    private String roomId;

    private Integer imgNum;

    private Integer commentNum;

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setViewNum(String viewNum) {
        this.viewNum = viewNum;
    }

    public void setLikeNum(String likeNum) {
        this.likeNum = likeNum;
    }

    public void setArticleImg(String articleImg) {
        this.articleImg = articleImg;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public String getUserId() {
        return userId;
    }

    public String getTitle() {
        return title;
    }

    public String getType() {
        return type;
    }

    public String getContent() {
        return content;
    }

    public String getArticleImg() {
        return articleImg;
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getViewNum() {
        return viewNum;
    }

    public String getLikeNum() {
        return likeNum;
    }

    public String getSaveNum() {
        return saveNum;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public void setSaveNum(String saveNum) {
        this.saveNum = saveNum;
    }
}
